/**
 * Copyright(C) 2012 Luvina Software Company
 * TblUserLogicImpl.java, Aug 24, 2012 Ngo Quang Tinh
 */
package net.luvina.manageuser.logic.impl;

import java.util.List;

import net.luvina.manageuser.dao.TblUserDao;
import net.luvina.manageuser.dao.TestDao;
import net.luvina.manageuser.dto.UserDetailDto;
import net.luvina.manageuser.hibernate.MstGroup;
import net.luvina.manageuser.hibernate.TblUser;
import net.luvina.manageuser.hibernate.User;
import net.luvina.manageuser.logic.TblUserLogic;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
/**
 * @author Ngo Quang Tinh
 *
 */
@Service("tblUserLogic")
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, readOnly = false, rollbackFor = { Throwable.class })
public class TblUserLogicImpl implements TblUserLogic {

    private TblUserDao tblUserDao;
    public List<UserDetailDto> getListUser(int offset, int limit, int groupId, String fullName, String sortType,
            String sortByFullName, String sortByCodeLevel, String sortByEndDate){

        return this.tblUserDao.getListUser(offset, limit, groupId, fullName, sortType, sortByFullName, sortByCodeLevel, sortByEndDate);
    }
    public List<MstGroup> getGroupList(){

        return this.tblUserDao.getGroupList();
    }

}
